package com.example.cash.craft.dao.persist.repository;

import com.example.cash.craft.pojo.entity.User;
import com.example.cash.craft.pojo.vo.PageData;
import com.example.cash.craft.pojo.vo.UserLoginResultVO;
import com.example.cash.craft.pojo.vo.UserVO;

public interface IUserRepository {

    int insert(User user);

    int deleteById(Long id);

    int updateById(User user);

    int countByUsername(String username);

    UserVO selectById(Long id);

    UserLoginResultVO selectByUsername(String username);

    PageData<UserVO> listAll(Integer page, Integer pageSize);

}
